package com.blackline.UI.ACCOUNTS;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

/**
 * @author XBO
 * @version Feb, 2013
 * <p>This page is after clicking "Add Document" link in Reconciliation page.
 * Please refer to UI.Document.png in doc-files.<br>
 */
public class Document {
	/**
	 * Account ID text
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_AccountListInfo_lblAccountID")
	public WebElement Account_ID_text;
	
	/**
	 * Upload Document radio button
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_documentDetail_cbDocument")
	public WebElement Upload_Document_radioButton;
	
	/**
	 * Path To Document radio button
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_documentDetail_cbFilePath")
	public WebElement Path_To_Document_radioButton;
	
	/**
	 * Document text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_documentDetail_oFile")
	public WebElement Document_textField;
	
	/**
	 * Description iframe. If you want to input texts into Description text box, you need to switch into this iframe; later you may need to switch back to defaultContent().
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_documentDetail_bleDocumentDesc_contentIframe")
	public WebElement Description_iframe;
	
	/**
	 * Description text box
	 */
	@FindBy (xpath = "//body")
	public WebElement Description_textBox;
	
	/**
	 * "Attach this document to the account ..." checkbox
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_cbCarryForward")
	public WebElement Attach_this_document_to_the_account_checkbox;
	
	/**
	 * Save button
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_btnSave")
	public WebElement Save_button;
	
	/**
	 * Cancel button
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_btnCancel")
	public WebElement Cancel_button;
	
	
}
